<?php
use ServiceComponents\Enum\HostEnum;
return [
    'name'  => 'Swoft framework 2.0',
    'swoft_debug' => HostEnum::SWOFT_DEBUG,
    'app_debug' => HostEnum::APP_DEBUG,
    'consul' => [
        "SERVICE_ID"=>HostEnum::ConsulServiceIdUser,
        "SERVICE_NAME"=>HostEnum::ConsulServiceNameUser,
        "HOST"=>HostEnum::ConsulHost,
        "PORT"=>HostEnum::ConsulPort,
        "TIMEOUT"=>HostEnum::ConsulTimeout
    ],
    'application'=>[
        "HTTP_PORT"=> HostEnum::ServiceUserHttpPort,
        "RPC_PORT"=> HostEnum::ServiceUserRpcPort,
        "WS_PORT"=> HostEnum::ServiceUserWsPort,
        "TCP_PORT"=> HostEnum::ServiceUserTcpPort
    ],
    'redis'=>[
        "HOST"=>HostEnum::RedisHost,
        "PORT"=>HostEnum::RedisPort,
        "PASSWORD"=>HostEnum::RedisPassword
    ],
    # 连接信息
    'AMQP' => [
        'host' => HostEnum::RabbitmqHost,
        'port'=> HostEnum::RabbitmqPortService,
        'login'=>HostEnum::RabbitmqLogin,
        'password'=> HostEnum::RabbitmqPassword,
        'vhost'=> HostEnum::RabbitmqVhost
    ],
    'Es' => [
        HostEnum::ElasticsearchHost.':'.HostEnum::ElasticsearchPort
    ],
    'Apollo' => [
        "HOST"=>HostEnum::ApolloHost,
        "PORT"=>HostEnum::ApolloPort,
        "APPID"=>HostEnum::ApolloAppid,
        "TIMEOUT"=>HostEnum::ApolloTimeout,
    ],
    'Mycat' => [
        'DSN' => "mysql:dbname=".HostEnum::MycatDb.";host=".HostEnum::MycatHost.":".HostEnum::MycatPort,
        'W_USERNAME' => HostEnum::MycatDbWriteUsername,
        'W_PASSWORD' => HostEnum::MycatDbWritePasswrod,
        'R_USERNAME' => HostEnum::MycatDbReadUsername,
        'R_PASSWORD' => HostEnum::MycatDbReadPasswrod,
    ]
];
